package com.trust.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.trust.entity.FieldLand;
import com.trust.mapper.FieldLandMapper;
import com.trust.service.FieldLandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class FieldLandServiceImpl extends ServiceImpl<FieldLandMapper, FieldLand> implements FieldLandService {

    @Override
    public void removeByFieldId(Integer fieldId) {
        LambdaQueryWrapper<FieldLand> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(FieldLand::getFieldId, fieldId);
        this.remove(wrapper);
    }
}
